<template>
  <div class="lix-atl__info-container">
    <div class="lix-atl__info-wrapper">
      <div class="avatar">
        <img
          src="../../assets/icons/account.png"
          alt=""
        >
      </div>
      <div class="article-info">
        <div class="username">人民日报</div>
        <div class="time">百家号 | 01-14 06:55</div>
      </div>
    </div>
    <div class="lix-atl__follow">
      <button class="btn">关注</button>
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
import { Button } from 'vant'
Vue.use(Button)
export default {
  components: {
    Button
  }
}
</script>

<style lang="scss">
@import "../../theme-chalk/default.scss";

@include b(atl) {
  @include e(info-container) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    font-weight: 400;
  }
  @include e(info-wrapper) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .avatar img {
      width: 36px;
      height: 36px;
    }
    .article-info {
      margin-left: 12px;
      font-size: 12px;
      color: #a2a2a2;
      .username {
        font-size: 15px;
        color: #333333;
      }
    }
  }
  @include e(follow) {
    height: 28px;
    width: 57px;
    button {
      width: 100%;
      height: 100%;
      background: #3897f0;
      color: #fff;
      font-size: 14px;
      line-height: 28px;
      border-radius: 3px;
      border-width: 0;
    }
    .btn {
      &:active {
        opacity: 0.5;
      }
    }
  }
}
</style>
